package com.yonsz.open.platform.model;

import cn.hutool.core.lang.UUID;
import lombok.Data;

/**
 * @Description:
 * @Author: xiaojunnuo
 * @CreateDate: 2020/3/21 0021$
 */
@Data
public class OpenRequestHeader {

    private String type;
    private String version;
    private Long requestTime;
    private String requestId;

    public OpenRequestHeader(String type) {
        this.requestTime = System.currentTimeMillis();
        this.requestId = UUID.randomUUID().toString(true);
        this.version = "1.0";
        this.type = type;
    }
}
